package com.sky.mapper;


import com.sky.dto.CategoryDTO;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import com.github.pagehelper.Page;

import java.util.List;

@Mapper
//
public interface CategoryMapper {
    //添加分类
    void addCategory(Category category);
    //分页查询
    Page<Category> selectCategory(CategoryPageQueryDTO categoryPageQueryDTO);


    void delectCategory(Integer id);

    List<Category> selectById(Integer id);


    void putById(Category category);

    List<Category> selectType(Category category);
}
